package org.mlz.game.model

import org.itheima.kotlin.game.core.Painter
import org.mlz.game.business.Attackable
import org.mlz.game.business.Blockable
import org.mlz.game.business.Sufferable

/**
 *<p>
 *具有阻塞能力
 *</p>
 * CreateBy  Malingzhao
 * @date  2020/9/18
 */
class Steel(override val x: Int, override val y: Int) : Blockable,Sufferable {
    /**
     * 生命值
     */
    override val blood: Int = 1


    override val width: Int = org.mlz.game.Config.block
    override val height: Int = org.mlz.game.Config.block

    override fun draw() {
        Painter.drawImage("img/steel.gif", x, y);
    }


    override fun notifySuffer(attackable: Attackable): Array<View>? {
     return null
    }
}
